package com.ccys.doctor.controller;

import com.ccys.common.vo.ResponseResultApp;
import com.ccys.db.vo.doctor.memberSummary.GetMemberSummaryVo;
import com.ccys.doctor.service.MemberSummaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: WhiteCoat
 * @description: MemberSummary相关接口
 * @author: ZhangJingCan
 * @create: 2024-02-07 16:52
 **/

@RestController
@Api(tags = "MemberSummary相关接口")
@RequestMapping("memberSummary")
public class MemberSummaryController {

    @Autowired
    private MemberSummaryService memberSummaryService;

    @ApiOperation("获取会员摘要")
    @GetMapping(value = "/GetMemberSummary")
    public ResponseResultApp<List<GetMemberSummaryVo>> getMemberSummary(String memberId) {
        return memberSummaryService.getMemberSummary(memberId);
    }


}
